import request from "@/utils/request.js";

/**
 * 演出列表
 */
export function showList(data) {
    return request.get(`nperform/show_list`, data, {
        noAuth: true
    });
}

/**
 * 演出详情
 */
export function show_detail(id) {
    return request.get(`nperform/section_list?id=`+id, {}, {
        noAuth: true
    });
}
// 演出场次区域列表
export function section_area(id) {
    return request.get(`nperform/section_area_list?section_id=`+id, {}, {
        noAuth: true
    });
}

// 演出区域座位列表
export function area_location_list(id) {
    return request.get(`nperform/area_loc_list?area_id=`+id, {}, {
        noAuth: true
    });
}

/**
 * 演出详情预定座位
 */
export function showConfirmOrder(data) {
    return request.post(`nperform/add_choice`, data, {
        noAuth: true
    });
}
/**
 * 购票支付
 */
export function ticketPay(data) {
    return request.post(`nperform/pay/${data.order_sn}`, data, {
        noAuth: true
    });
}

// 验票真实性
export function verify(id) {
    return request.get(`perform/verify/`+id, {}, {
        noAuth: true
    });
}
// 查票
export function query(data) {
    return request.get(`perform/query`, data, {
        noAuth: true
    });
}